﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">

  <class name="CentroCosto" table="common_Centro_Costo">
    <id name="Identity" column="CentroCostoID"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Codigo" column="Codigo" type="String" length="50" />
    <property name="Nombre" column="Nombre" type="String" length="50" />
    <many-to-one name="AgenciaRef" column="AgenciaId" class="OpenSda.Agilcont.Common.Data.Entities, OpenSda.Agilcont.Common.Data.Entities" not-null="true"/>
    <many-to-one name="ParentRef" column="Parent" class="OpenSda.Agilcont.Common.Data.Entities, OpenSda.Agilcont.Common.Data.Entities" not-null="true"/>

  </class>
</hibernate-mapping>



